﻿using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using DevExpress.XtraReports.UI;
using System.Data;
using Model;
using BartonExtension;

namespace Backend
{
    public partial class StoreReport : DevExpress.XtraReports.UI.XtraReport
    {
        public StoreReport()
        {
            InitializeComponent();
        }

        public StoreReport(Matrix matrix)
        {
            InitializeComponent();


            DataTable dt = matrix.data;
            XRTableRow row = new XRTableRow();
            foreach(DataColumn col in dt.Columns)
            {
                XRTableCell h_cell = new XRTableCell();
                h_cell.NullValueText = col.ColumnName;
                PageHeader.Controls.Add(h_cell);
                row.Cells.Add(h_cell);
            }
            h_tb.Rows.Add(row);

            
        }
    }
}
